package com.luwak.common.validator;


import com.luwak.common.exception.RRException;
import org.apache.commons.lang.StringUtils;

/**
 * @author ChenXc
 * @version V1.0
 * @Date 2018/3/23  14:24
 * @Description TODO(数据校验)
 */
public abstract class Assert {

    public static void isBlank(String str, String message) {
        if (StringUtils.isBlank(str)) {
            throw new RRException(message);
        }
    }

    public static void isNull(Object object, String message) {
        if (object == null) {
            throw new RRException(message);
        }
    }

}
